﻿using BitButterCORE.Factory;

namespace BitButterCORE.Object
{
	public class BaseToken : BaseObject
	{
		protected override IFactory Factory => TokenFactory.Instance;
		protected override IObjectReference<BaseObject> CreateReference() => new TokenReference(this);
	}

	public class TokenReference : ObjectReference<BaseToken>
	{
		public TokenReference(BaseToken token)
			: base(TokenFactory.Instance, token.ID)
		{
		}
	}
}
